﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace HA.ModFlow.Controls.Windows
{
    /// <summary>
    /// winTwoTextBox.xaml 的交互逻辑
    /// </summary>
    public partial class winTwoTextBox : Window
    {
        public winTwoTextBox(double coordX,double coordY)
        {
            this._coordinateX = coordX;
            this._coordinateY = coordY;
            InitializeComponent();

            this.DataContext = this;
        }

        double _coordinateX;

        public double CoordinateX
        {
            get { return _coordinateX; }
            set { _coordinateX = value; }
        }

        double _coordinateY;

        public double CoordinateY
        {
            get { return _coordinateY; }
            set { _coordinateY = value; }
        }


        private void btnConfirm_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
            this.Close();
        }

        private void btnCancel_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
            this.Close();
        }
    }
}
